as Jws Json Object With Key Binding
abstract fun SdJwt<JWT>.asJwsJsonObjectWithKeyBinding(option: JwsSerializationOption = JwsSerializationOption.Flattened, kbJwt: Jwt): JsonObject(source)
abstract suspend fun SdJwt<JWT>.asJwsJsonObjectWithKeyBinding(option: JwsSerializationOption = JwsSerializationOption.Flattened, buildKbJwt: BuildKbJwt): Result<JsonObject>(source)
Creates a representation of an SdJwt as a JWS JSON according to RFC7515. In addition to the General & Flattened representations defined in the RFC7515, the result JSON contains an unprotected header which includes an array with the disclosures of the SdJwt and the key binding JWT
Receiver
the SdJwt to serialize
Return
a JSON object either general or flattened according to RFC7515 having an additional disclosures array the key binding JWT
Parameters
option
to produce a JwsSerializationOption.General or JwsSerializationOption.Flattened representation as defined in RFC7515
hash Algorithm
HashAlgorithm to be used for generating the SdJwtDigest that will be included in the generated Key Binding JWT
build Kb Jwt
a way to construct the Key binding JWT